function http({
    success,
    url
}){
    wx.request({
        url,
        data: {},
        method: 'GET', // OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT
        // header: {}, // 设置请求的 header
        success:res=>{
            // console.log(res);
            success(res)
        }
    })
}
module.exports = http;